package com.bing.dto;

import com.bing.utils.ValidateUtils;
import javax.validation.constraints.Pattern;
import org.hibernate.validator.constraints.Length;

public class PhoneCode {

  @Pattern(regexp = ValidateUtils.V_MOBILE, message = "手机格式不正确")
  private String phone;

  @Length(min = 4, max = 4, message = "短信验证码错误")
  private String code;


  public PhoneCode() {
    super();
  }

  public PhoneCode(String phone, String code) {
    super();
    this.phone = phone;
    this.code = code;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }


}
